package com.neusoft.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class BookExample {
	protected String orderByClause;

	protected boolean distinct;

	protected List<Criteria> oredCriteria;

	public BookExample() {
		oredCriteria = new ArrayList<Criteria>();
	}

	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	public String getOrderByClause() {
		return orderByClause;
	}

	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}

	public boolean isDistinct() {
		return distinct;
	}

	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}

	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}

	public Criteria or() {
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}

	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}

	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}

	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}

	protected abstract static class GeneratedCriteria {
		protected List<Criterion> criteria;

		protected GeneratedCriteria() {
			super();
			criteria = new ArrayList<Criterion>();
		}

		public boolean isValid() {
			return criteria.size() > 0;
		}

		public List<Criterion> getAllCriteria() {
			return criteria;
		}

		public List<Criterion> getCriteria() {
			return criteria;
		}

		protected void addCriterion(String condition) {
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteria.add(new Criterion(condition));
		}

		protected void addCriterion(String condition, Object value, String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value));
		}

		protected void addCriterion(String condition, Object value1, Object value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value1, value2));
		}

		protected void addCriterionForJDBCDate(String condition, Date value, String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property + " cannot be null");
			}
			addCriterion(condition, new java.sql.Date(value.getTime()), property);
		}

		protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
			if (values == null || values.size() == 0) {
				throw new RuntimeException("Value list for " + property + " cannot be null or empty");
			}
			List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
			Iterator<Date> iter = values.iterator();
			while (iter.hasNext()) {
				dateList.add(new java.sql.Date(iter.next().getTime()));
			}
			addCriterion(condition, dateList, property);
		}

		protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property + " cannot be null");
			}
			addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
		}

		public Criteria andBIdIsNull() {
			addCriterion("b_id is null");
			return (Criteria) this;
		}

		public Criteria andBIdIsNotNull() {
			addCriterion("b_id is not null");
			return (Criteria) this;
		}

		public Criteria andBIdEqualTo(Integer value) {
			addCriterion("b_id =", value, "bId");
			return (Criteria) this;
		}

		public Criteria andBIdNotEqualTo(Integer value) {
			addCriterion("b_id <>", value, "bId");
			return (Criteria) this;
		}

		public Criteria andBIdGreaterThan(Integer value) {
			addCriterion("b_id >", value, "bId");
			return (Criteria) this;
		}

		public Criteria andBIdGreaterThanOrEqualTo(Integer value) {
			addCriterion("b_id >=", value, "bId");
			return (Criteria) this;
		}

		public Criteria andBIdLessThan(Integer value) {
			addCriterion("b_id <", value, "bId");
			return (Criteria) this;
		}

		public Criteria andBIdLessThanOrEqualTo(Integer value) {
			addCriterion("b_id <=", value, "bId");
			return (Criteria) this;
		}

		public Criteria andBIdIn(List<Integer> values) {
			addCriterion("b_id in", values, "bId");
			return (Criteria) this;
		}

		public Criteria andBIdNotIn(List<Integer> values) {
			addCriterion("b_id not in", values, "bId");
			return (Criteria) this;
		}

		public Criteria andBIdBetween(Integer value1, Integer value2) {
			addCriterion("b_id between", value1, value2, "bId");
			return (Criteria) this;
		}

		public Criteria andBIdNotBetween(Integer value1, Integer value2) {
			addCriterion("b_id not between", value1, value2, "bId");
			return (Criteria) this;
		}

		public Criteria andBIsbnIsNull() {
			addCriterion("b_isbn is null");
			return (Criteria) this;
		}

		public Criteria andBIsbnIsNotNull() {
			addCriterion("b_isbn is not null");
			return (Criteria) this;
		}

		public Criteria andBIsbnEqualTo(String value) {
			addCriterion("b_isbn =", value, "bIsbn");
			return (Criteria) this;
		}

		public Criteria andBIsbnNotEqualTo(String value) {
			addCriterion("b_isbn <>", value, "bIsbn");
			return (Criteria) this;
		}

		public Criteria andBIsbnGreaterThan(String value) {
			addCriterion("b_isbn >", value, "bIsbn");
			return (Criteria) this;
		}

		public Criteria andBIsbnGreaterThanOrEqualTo(String value) {
			addCriterion("b_isbn >=", value, "bIsbn");
			return (Criteria) this;
		}

		public Criteria andBIsbnLessThan(String value) {
			addCriterion("b_isbn <", value, "bIsbn");
			return (Criteria) this;
		}

		public Criteria andBIsbnLessThanOrEqualTo(String value) {
			addCriterion("b_isbn <=", value, "bIsbn");
			return (Criteria) this;
		}

		public Criteria andBIsbnLike(String value) {
			addCriterion("b_isbn like", value, "bIsbn");
			return (Criteria) this;
		}

		public Criteria andBIsbnNotLike(String value) {
			addCriterion("b_isbn not like", value, "bIsbn");
			return (Criteria) this;
		}

		public Criteria andBIsbnIn(List<String> values) {
			addCriterion("b_isbn in", values, "bIsbn");
			return (Criteria) this;
		}

		public Criteria andBIsbnNotIn(List<String> values) {
			addCriterion("b_isbn not in", values, "bIsbn");
			return (Criteria) this;
		}

		public Criteria andBIsbnBetween(String value1, String value2) {
			addCriterion("b_isbn between", value1, value2, "bIsbn");
			return (Criteria) this;
		}

		public Criteria andBIsbnNotBetween(String value1, String value2) {
			addCriterion("b_isbn not between", value1, value2, "bIsbn");
			return (Criteria) this;
		}

		public Criteria andBPriceIsNull() {
			addCriterion("b_price is null");
			return (Criteria) this;
		}

		public Criteria andBPriceIsNotNull() {
			addCriterion("b_price is not null");
			return (Criteria) this;
		}

		public Criteria andBPriceEqualTo(BigDecimal value) {
			addCriterion("b_price =", value, "bPrice");
			return (Criteria) this;
		}

		public Criteria andBPriceNotEqualTo(BigDecimal value) {
			addCriterion("b_price <>", value, "bPrice");
			return (Criteria) this;
		}

		public Criteria andBPriceGreaterThan(BigDecimal value) {
			addCriterion("b_price >", value, "bPrice");
			return (Criteria) this;
		}

		public Criteria andBPriceGreaterThanOrEqualTo(BigDecimal value) {
			addCriterion("b_price >=", value, "bPrice");
			return (Criteria) this;
		}

		public Criteria andBPriceLessThan(BigDecimal value) {
			addCriterion("b_price <", value, "bPrice");
			return (Criteria) this;
		}

		public Criteria andBPriceLessThanOrEqualTo(BigDecimal value) {
			addCriterion("b_price <=", value, "bPrice");
			return (Criteria) this;
		}

		public Criteria andBPriceIn(List<BigDecimal> values) {
			addCriterion("b_price in", values, "bPrice");
			return (Criteria) this;
		}

		public Criteria andBPriceNotIn(List<BigDecimal> values) {
			addCriterion("b_price not in", values, "bPrice");
			return (Criteria) this;
		}

		public Criteria andBPriceBetween(BigDecimal value1, BigDecimal value2) {
			addCriterion("b_price between", value1, value2, "bPrice");
			return (Criteria) this;
		}

		public Criteria andBPriceNotBetween(BigDecimal value1, BigDecimal value2) {
			addCriterion("b_price not between", value1, value2, "bPrice");
			return (Criteria) this;
		}

		public Criteria andAuthorIsNull() {
			addCriterion("author is null");
			return (Criteria) this;
		}

		public Criteria andAuthorIsNotNull() {
			addCriterion("author is not null");
			return (Criteria) this;
		}

		public Criteria andAuthorEqualTo(String value) {
			addCriterion("author =", value, "author");
			return (Criteria) this;
		}

		public Criteria andAuthorNotEqualTo(String value) {
			addCriterion("author <>", value, "author");
			return (Criteria) this;
		}

		public Criteria andAuthorGreaterThan(String value) {
			addCriterion("author >", value, "author");
			return (Criteria) this;
		}

		public Criteria andAuthorGreaterThanOrEqualTo(String value) {
			addCriterion("author >=", value, "author");
			return (Criteria) this;
		}

		public Criteria andAuthorLessThan(String value) {
			addCriterion("author <", value, "author");
			return (Criteria) this;
		}

		public Criteria andAuthorLessThanOrEqualTo(String value) {
			addCriterion("author <=", value, "author");
			return (Criteria) this;
		}

		public Criteria andAuthorLike(String value) {
			addCriterion("author like", value, "author");
			return (Criteria) this;
		}

		public Criteria andAuthorNotLike(String value) {
			addCriterion("author not like", value, "author");
			return (Criteria) this;
		}

		public Criteria andAuthorIn(List<String> values) {
			addCriterion("author in", values, "author");
			return (Criteria) this;
		}

		public Criteria andAuthorNotIn(List<String> values) {
			addCriterion("author not in", values, "author");
			return (Criteria) this;
		}

		public Criteria andAuthorBetween(String value1, String value2) {
			addCriterion("author between", value1, value2, "author");
			return (Criteria) this;
		}

		public Criteria andAuthorNotBetween(String value1, String value2) {
			addCriterion("author not between", value1, value2, "author");
			return (Criteria) this;
		}

		public Criteria andBNameIsNull() {
			addCriterion("b_name is null");
			return (Criteria) this;
		}

		public Criteria andBNameIsNotNull() {
			addCriterion("b_name is not null");
			return (Criteria) this;
		}

		public Criteria andBNameEqualTo(String value) {
			addCriterion("b_name =", value, "bName");
			return (Criteria) this;
		}

		public Criteria andBNameNotEqualTo(String value) {
			addCriterion("b_name <>", value, "bName");
			return (Criteria) this;
		}

		public Criteria andBNameGreaterThan(String value) {
			addCriterion("b_name >", value, "bName");
			return (Criteria) this;
		}

		public Criteria andBNameGreaterThanOrEqualTo(String value) {
			addCriterion("b_name >=", value, "bName");
			return (Criteria) this;
		}

		public Criteria andBNameLessThan(String value) {
			addCriterion("b_name <", value, "bName");
			return (Criteria) this;
		}

		public Criteria andBNameLessThanOrEqualTo(String value) {
			addCriterion("b_name <=", value, "bName");
			return (Criteria) this;
		}

		public Criteria andBNameLike(String value) {
			addCriterion("b_name like", value, "bName");
			return (Criteria) this;
		}

		public Criteria andBNameNotLike(String value) {
			addCriterion("b_name not like", value, "bName");
			return (Criteria) this;
		}

		public Criteria andBNameIn(List<String> values) {
			addCriterion("b_name in", values, "bName");
			return (Criteria) this;
		}

		public Criteria andBNameNotIn(List<String> values) {
			addCriterion("b_name not in", values, "bName");
			return (Criteria) this;
		}

		public Criteria andBNameBetween(String value1, String value2) {
			addCriterion("b_name between", value1, value2, "bName");
			return (Criteria) this;
		}

		public Criteria andBNameNotBetween(String value1, String value2) {
			addCriterion("b_name not between", value1, value2, "bName");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseIsNull() {
			addCriterion("b_publish_house is null");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseIsNotNull() {
			addCriterion("b_publish_house is not null");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseEqualTo(String value) {
			addCriterion("b_publish_house =", value, "bPublishHouse");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseNotEqualTo(String value) {
			addCriterion("b_publish_house <>", value, "bPublishHouse");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseGreaterThan(String value) {
			addCriterion("b_publish_house >", value, "bPublishHouse");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseGreaterThanOrEqualTo(String value) {
			addCriterion("b_publish_house >=", value, "bPublishHouse");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseLessThan(String value) {
			addCriterion("b_publish_house <", value, "bPublishHouse");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseLessThanOrEqualTo(String value) {
			addCriterion("b_publish_house <=", value, "bPublishHouse");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseLike(String value) {
			addCriterion("b_publish_house like", value, "bPublishHouse");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseNotLike(String value) {
			addCriterion("b_publish_house not like", value, "bPublishHouse");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseIn(List<String> values) {
			addCriterion("b_publish_house in", values, "bPublishHouse");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseNotIn(List<String> values) {
			addCriterion("b_publish_house not in", values, "bPublishHouse");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseBetween(String value1, String value2) {
			addCriterion("b_publish_house between", value1, value2, "bPublishHouse");
			return (Criteria) this;
		}

		public Criteria andBPublishHouseNotBetween(String value1, String value2) {
			addCriterion("b_publish_house not between", value1, value2, "bPublishHouse");
			return (Criteria) this;
		}

		public Criteria andBPublishDateIsNull() {
			addCriterion("b_publish_date is null");
			return (Criteria) this;
		}

		public Criteria andBPublishDateIsNotNull() {
			addCriterion("b_publish_date is not null");
			return (Criteria) this;
		}

		public Criteria andBPublishDateEqualTo(Date value) {
			addCriterionForJDBCDate("b_publish_date =", value, "bPublishDate");
			return (Criteria) this;
		}

		public Criteria andBPublishDateNotEqualTo(Date value) {
			addCriterionForJDBCDate("b_publish_date <>", value, "bPublishDate");
			return (Criteria) this;
		}

		public Criteria andBPublishDateGreaterThan(Date value) {
			addCriterionForJDBCDate("b_publish_date >", value, "bPublishDate");
			return (Criteria) this;
		}

		public Criteria andBPublishDateGreaterThanOrEqualTo(Date value) {
			addCriterionForJDBCDate("b_publish_date >=", value, "bPublishDate");
			return (Criteria) this;
		}

		public Criteria andBPublishDateLessThan(Date value) {
			addCriterionForJDBCDate("b_publish_date <", value, "bPublishDate");
			return (Criteria) this;
		}

		public Criteria andBPublishDateLessThanOrEqualTo(Date value) {
			addCriterionForJDBCDate("b_publish_date <=", value, "bPublishDate");
			return (Criteria) this;
		}

		public Criteria andBPublishDateIn(List<Date> values) {
			addCriterionForJDBCDate("b_publish_date in", values, "bPublishDate");
			return (Criteria) this;
		}

		public Criteria andBPublishDateNotIn(List<Date> values) {
			addCriterionForJDBCDate("b_publish_date not in", values, "bPublishDate");
			return (Criteria) this;
		}

		public Criteria andBPublishDateBetween(Date value1, Date value2) {
			addCriterionForJDBCDate("b_publish_date between", value1, value2, "bPublishDate");
			return (Criteria) this;
		}

		public Criteria andBPublishDateNotBetween(Date value1, Date value2) {
			addCriterionForJDBCDate("b_publish_date not between", value1, value2, "bPublishDate");
			return (Criteria) this;
		}

		public Criteria andDayMoneyIsNull() {
			addCriterion("day_money is null");
			return (Criteria) this;
		}

		public Criteria andDayMoneyIsNotNull() {
			addCriterion("day_money is not null");
			return (Criteria) this;
		}

		public Criteria andDayMoneyEqualTo(BigDecimal value) {
			addCriterion("day_money =", value, "dayMoney");
			return (Criteria) this;
		}

		public Criteria andDayMoneyNotEqualTo(BigDecimal value) {
			addCriterion("day_money <>", value, "dayMoney");
			return (Criteria) this;
		}

		public Criteria andDayMoneyGreaterThan(BigDecimal value) {
			addCriterion("day_money >", value, "dayMoney");
			return (Criteria) this;
		}

		public Criteria andDayMoneyGreaterThanOrEqualTo(BigDecimal value) {
			addCriterion("day_money >=", value, "dayMoney");
			return (Criteria) this;
		}

		public Criteria andDayMoneyLessThan(BigDecimal value) {
			addCriterion("day_money <", value, "dayMoney");
			return (Criteria) this;
		}

		public Criteria andDayMoneyLessThanOrEqualTo(BigDecimal value) {
			addCriterion("day_money <=", value, "dayMoney");
			return (Criteria) this;
		}

		public Criteria andDayMoneyIn(List<BigDecimal> values) {
			addCriterion("day_money in", values, "dayMoney");
			return (Criteria) this;
		}

		public Criteria andDayMoneyNotIn(List<BigDecimal> values) {
			addCriterion("day_money not in", values, "dayMoney");
			return (Criteria) this;
		}

		public Criteria andDayMoneyBetween(BigDecimal value1, BigDecimal value2) {
			addCriterion("day_money between", value1, value2, "dayMoney");
			return (Criteria) this;
		}

		public Criteria andDayMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
			addCriterion("day_money not between", value1, value2, "dayMoney");
			return (Criteria) this;
		}

		public Criteria andBPicIsNull() {
			addCriterion("b_pic is null");
			return (Criteria) this;
		}

		public Criteria andBPicIsNotNull() {
			addCriterion("b_pic is not null");
			return (Criteria) this;
		}

		public Criteria andBPicEqualTo(String value) {
			addCriterion("b_pic =", value, "bPic");
			return (Criteria) this;
		}

		public Criteria andBPicNotEqualTo(String value) {
			addCriterion("b_pic <>", value, "bPic");
			return (Criteria) this;
		}

		public Criteria andBPicGreaterThan(String value) {
			addCriterion("b_pic >", value, "bPic");
			return (Criteria) this;
		}

		public Criteria andBPicGreaterThanOrEqualTo(String value) {
			addCriterion("b_pic >=", value, "bPic");
			return (Criteria) this;
		}

		public Criteria andBPicLessThan(String value) {
			addCriterion("b_pic <", value, "bPic");
			return (Criteria) this;
		}

		public Criteria andBPicLessThanOrEqualTo(String value) {
			addCriterion("b_pic <=", value, "bPic");
			return (Criteria) this;
		}

		public Criteria andBPicLike(String value) {
			addCriterion("b_pic like", value, "bPic");
			return (Criteria) this;
		}

		public Criteria andBPicNotLike(String value) {
			addCriterion("b_pic not like", value, "bPic");
			return (Criteria) this;
		}

		public Criteria andBPicIn(List<String> values) {
			addCriterion("b_pic in", values, "bPic");
			return (Criteria) this;
		}

		public Criteria andBPicNotIn(List<String> values) {
			addCriterion("b_pic not in", values, "bPic");
			return (Criteria) this;
		}

		public Criteria andBPicBetween(String value1, String value2) {
			addCriterion("b_pic between", value1, value2, "bPic");
			return (Criteria) this;
		}

		public Criteria andBPicNotBetween(String value1, String value2) {
			addCriterion("b_pic not between", value1, value2, "bPic");
			return (Criteria) this;
		}

		public Criteria andBDiscribeIsNull() {
			addCriterion("b_discribe is null");
			return (Criteria) this;
		}

		public Criteria andBDiscribeIsNotNull() {
			addCriterion("b_discribe is not null");
			return (Criteria) this;
		}

		public Criteria andBDiscribeEqualTo(String value) {
			addCriterion("b_discribe =", value, "bDiscribe");
			return (Criteria) this;
		}

		public Criteria andBDiscribeNotEqualTo(String value) {
			addCriterion("b_discribe <>", value, "bDiscribe");
			return (Criteria) this;
		}

		public Criteria andBDiscribeGreaterThan(String value) {
			addCriterion("b_discribe >", value, "bDiscribe");
			return (Criteria) this;
		}

		public Criteria andBDiscribeGreaterThanOrEqualTo(String value) {
			addCriterion("b_discribe >=", value, "bDiscribe");
			return (Criteria) this;
		}

		public Criteria andBDiscribeLessThan(String value) {
			addCriterion("b_discribe <", value, "bDiscribe");
			return (Criteria) this;
		}

		public Criteria andBDiscribeLessThanOrEqualTo(String value) {
			addCriterion("b_discribe <=", value, "bDiscribe");
			return (Criteria) this;
		}

		public Criteria andBDiscribeLike(String value) {
			addCriterion("b_discribe like", value, "bDiscribe");
			return (Criteria) this;
		}

		public Criteria andBDiscribeNotLike(String value) {
			addCriterion("b_discribe not like", value, "bDiscribe");
			return (Criteria) this;
		}

		public Criteria andBDiscribeIn(List<String> values) {
			addCriterion("b_discribe in", values, "bDiscribe");
			return (Criteria) this;
		}

		public Criteria andBDiscribeNotIn(List<String> values) {
			addCriterion("b_discribe not in", values, "bDiscribe");
			return (Criteria) this;
		}

		public Criteria andBDiscribeBetween(String value1, String value2) {
			addCriterion("b_discribe between", value1, value2, "bDiscribe");
			return (Criteria) this;
		}

		public Criteria andBDiscribeNotBetween(String value1, String value2) {
			addCriterion("b_discribe not between", value1, value2, "bDiscribe");
			return (Criteria) this;
		}

		public Criteria andBookClassIsNull() {
			addCriterion("book_class is null");
			return (Criteria) this;
		}

		public Criteria andBookClassIsNotNull() {
			addCriterion("book_class is not null");
			return (Criteria) this;
		}

		public Criteria andBookClassEqualTo(String value) {
			addCriterion("book_class =", value, "bookClass");
			return (Criteria) this;
		}

		public Criteria andBookClassNotEqualTo(String value) {
			addCriterion("book_class <>", value, "bookClass");
			return (Criteria) this;
		}

		public Criteria andBookClassGreaterThan(String value) {
			addCriterion("book_class >", value, "bookClass");
			return (Criteria) this;
		}

		public Criteria andBookClassGreaterThanOrEqualTo(String value) {
			addCriterion("book_class >=", value, "bookClass");
			return (Criteria) this;
		}

		public Criteria andBookClassLessThan(String value) {
			addCriterion("book_class <", value, "bookClass");
			return (Criteria) this;
		}

		public Criteria andBookClassLessThanOrEqualTo(String value) {
			addCriterion("book_class <=", value, "bookClass");
			return (Criteria) this;
		}

		public Criteria andBookClassLike(String value) {
			addCriterion("book_class like", value, "bookClass");
			return (Criteria) this;
		}

		public Criteria andBookClassNotLike(String value) {
			addCriterion("book_class not like", value, "bookClass");
			return (Criteria) this;
		}

		public Criteria andBookClassIn(List<String> values) {
			addCriterion("book_class in", values, "bookClass");
			return (Criteria) this;
		}

		public Criteria andBookClassNotIn(List<String> values) {
			addCriterion("book_class not in", values, "bookClass");
			return (Criteria) this;
		}

		public Criteria andBookClassBetween(String value1, String value2) {
			addCriterion("book_class between", value1, value2, "bookClass");
			return (Criteria) this;
		}

		public Criteria andBookClassNotBetween(String value1, String value2) {
			addCriterion("book_class not between", value1, value2, "bookClass");
			return (Criteria) this;
		}
	}

	public static class Criteria extends GeneratedCriteria {

		protected Criteria() {
			super();
		}
	}

	public static class Criterion {
		private String condition;

		private Object value;

		private Object secondValue;

		private boolean noValue;

		private boolean singleValue;

		private boolean betweenValue;

		private boolean listValue;

		private String typeHandler;

		public String getCondition() {
			return condition;
		}

		public Object getValue() {
			return value;
		}

		public Object getSecondValue() {
			return secondValue;
		}

		public boolean isNoValue() {
			return noValue;
		}

		public boolean isSingleValue() {
			return singleValue;
		}

		public boolean isBetweenValue() {
			return betweenValue;
		}

		public boolean isListValue() {
			return listValue;
		}

		public String getTypeHandler() {
			return typeHandler;
		}

		protected Criterion(String condition) {
			super();
			this.condition = condition;
			this.typeHandler = null;
			this.noValue = true;
		}

		protected Criterion(String condition, Object value, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.typeHandler = typeHandler;
			if (value instanceof List<?>) {
				this.listValue = true;
			} else {
				this.singleValue = true;
			}
		}

		protected Criterion(String condition, Object value) {
			this(condition, value, null);
		}

		protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.secondValue = secondValue;
			this.typeHandler = typeHandler;
			this.betweenValue = true;
		}

		protected Criterion(String condition, Object value, Object secondValue) {
			this(condition, value, secondValue, null);
		}
	}
}